package com.supermap.adapters;

import com.supermap.MainFrame;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class MainFrameAdapter extends WindowAdapter {
    private final MainFrame mainFrame;

    public MainFrameAdapter(MainFrame mainFrame) {
        this.mainFrame = mainFrame;
    }

    @Override
    public void windowClosing(WindowEvent e) {
        mainFrame.windowClosing();
    }
}
